﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace TestHarnessWebRole
{
    public class ExecutionTimer
    {
        private DateTime startTime;
        private DateTime endTime;

        public void StartTimer()
        {
            startTime = DateTime.Now;
        }

        public void EndTimer()
        {
            endTime = DateTime.Now;
        }

        public string ExecutionTime
        {
            get
            {
                TimeSpan timeSpan = endTime - startTime;

                return timeSpan.Milliseconds.ToString() + "ms";
            }
        }
    }
}
